﻿@model IEnumerable<ADShop.Models.Product>
<div class="box">
    <div class="box-heading"><span>Related Products</span></div>
    <div class="box-content">
        <div class="box-product">
            @foreach(var itemsrelated in Model)
            { 
                <div>
                    <div class="image"><a href="~/DetailsProduct/Details/@itemsrelated.IDProduct">@Html.Action("GetImage", "ProductManager", new { id = @itemsrelated.IDProduct })</a></div>
                    <div class="name"><a href="~/DetailsProduct/Details/@itemsrelated.IDProduct">@itemsrelated.NameProduct</a></div>
                    <div class="price"> <span class="price-old">$ @itemsrelated.PriceProduct.ToString("0,00.##")</span> <span class="price-new">$ @itemsrelated.ListedPrice.ToString("0,00.##")</span> </div>
                    <div class="rating">
                        @Html.Action("GetRating", "ProductManager", new { id = @itemsrelated.IDProduct })
                    </div>
                    <a class="button">Add to Cart</a>
                </div>
            }
        </div>
    </div>
</div>
